import request from "../utils/request";

export const getAllProductType = (params?: any) => request.get('/gen/goodstype', { params })
export const updateProductType = (data: any) => request.put('/gen/goodstype', data)
export const delProductTypeById = (data: any) => request.delete(`/gen/goodstype/${data}`)
export const addProductType = (data: any) => request.post('/gen/goodstype', data)